var dataReader = require('./dataReader');
var dataHandler = require('./dataHandler');
var dataWriter = require('./dataWriter');

var pcBasicGroups = dataReader.readSkins("pc");
var mBasicGroups = dataReader.readSkins("mobile");

var pcResult = dataHandler.handleBasicGroups(pcBasicGroups,"pc_");
var mResult = dataHandler.handleBasicGroups(mBasicGroups,"m_");

var result = {
    "mViews":mResult.views,
    "pcViews":pcResult.views,
    "groups":mResult.groups.concat(pcResult.groups)
};

dataWriter.writeResult(result);
